package com.yys.gulimall.gulimallauthserver.feign;/*
 * @author zq
 */

import com.yys.common.to.user.RegistUserTo;
import com.yys.common.utils.R;
import com.yys.gulimall.gulimallauthserver.vo.SocialUser;
import com.yys.gulimall.gulimallauthserver.vo.UserLoginVo;
import com.yys.gulimall.gulimallauthserver.vo.UserRegistVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("gulimall-member")
@Service
public interface MemberFeignService {

    @PostMapping("/member/member/regist")
    R regist( @RequestBody UserRegistVo userRegistVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo memberLoginVo);

    @PostMapping("/member/member/auth/login")
    R socialLogin(@RequestBody SocialUser socialUser);
}
